package com.hnhp.dao;

import com.hnhp.model.Category;
import com.hnhp.model.CategoryQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryDao {

    public List<Category> findAll();

    //根据id name 批量查询 id name是不是必填项
    public List<Category> select(CategoryQuery query);
    public int insert(Category category);
    public int update(Category category);
    // 软删除
    public int updateStatus(@Param("id") Integer id,
                            @Param("status") Integer status);
}
